package com.zhuyuan.swagger.properties;

import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.License;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;

/**
 * @Author: 张琳凯
 * @Description: swagger 配置参数
 * @DateTime: 2025/2/7 10:47
 **/
@Data
@ConfigurationProperties(prefix = "swagger")
public class SpringDocProperties {
    /**
     * 网关
     */
    private String gateway;

    /**
     * 标题
     */
    private String title = null;

    /**
     * 描述
     */
    private String description = null;

    /**
     * 联系人信息
     */
    @NestedConfigurationProperty
    private Contact contact = null;

    /**
     * 许可证
     */
    @NestedConfigurationProperty
    private License license = null;

    /**
     * 版本
     */
    private String version = null;
}
